#ifndef WIDGET_H
#define WIDGET_H

#include <head/g_pch.h>
#include "dstore.pb.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    void saveAction(const QString &entry,
                    const QString &host,
                    int port,
                    const QString &user,
                    const QString &passwd,
                    const QString &dbName,
                    const QString &filePath);

private slots:
    void on_btn_load_clicked();

    void on_btn_save_clicked();

    void on_btn_saveAs_clicked();

private:
    Ui::Widget *ui;

    QString filePath;
};
#endif // WIDGET_H
